<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/echarts.min.js"></script>
    <script src="js/jquery.min.js"></script>
</head>

<body>
    <!-- 容器元素 -->
    <div id="main" style="width: 600px;height:400px;"></div>
    <script type="text/javascript">
        // 初始化容器
        var myChart = echarts.init(document.getElementById('main'));
        // 设置图标的配置项
        let option = {
            xAxis: {
                data: ['A', 'B', 'C', 'D', 'E']
            },
            yAxis: {},
            series: [
                // {
                //     data: [10, 22, 28, 23, 19],
                //     type: 'line',
                //     // 区域设置
                //     areaStyle: {}
                // },
                // {
                //     data: [25, 14, 23, 35, 10],
                //     type: 'line',
                //     areaStyle: {
                //         color: '#ff0',
                //         opacity: 0.5
                //     }
                // },
                {
                    data: [5, 14, 28, 23, 13],
                    type: 'line',
                    // 平滑的曲线图
                    smooth: true,
                    areaStyle: {
                        color: '#f00',
                        opacity: 0.5,
                        shadowColor: 'rgba(0, 0, 0, 0.8)',
                        shadowBlur: 20
                    }
                }
            ]
        };
        // 设置配置项
        myChart.setOption(option);
    </script>
</body>

</html>